'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/api/goods', controller.api.goods.index)
  router.get('/api/sort', controller.api.sort.index)
  router.post('/api/addCart',controller.api.addCart.index)
  router.get('/api/getCart',controller.api.getCart.index)
  router.post('/api/editCart',controller.api.editCart.index)
  router.post('/api/deleteCart',controller.api.deleteCart.index)
  router.post('/api/setAllChecked',controller.api.setAllChecked.index)
  router.post('/api/login',controller.api.login.index)
  router.post('/api/logout',controller.api.logout.index)
  router.get("/getToken",controller.token.index)
};
